<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2017/7/8
 * Time: 14:18
 */

$redis = new Redis();
$redis->connect( "localhost", 6379 );
$ping = $redis->ping();
echo $ping . PHP_EOL;